<script src=script/Environment.js></script>
<script src=script/tools.js></script>
<script src=script/P4.js></script>
<script>
	Environment.setScriptFolderPath(
		File.objFSO.GetParentFolderName(File.convertUrlPathToLocalFilePath(document.location.href))+'\\script'
		);
</script>
<script src=script/buildCraftCommandLine.js></script>
<!--<script src=script/ProjectInformationProviderFactory.js></script>-->
<script>
	this.callbacker=window.dialogArguments.callbacker;
	
	var shouldCatchException=false;
	
	if(shouldCatchException)
	{
		try{
			var process=new BuildCraftProcess(this.callbacker);
			process.handleP4Path(window.dialogArguments.filePath);
		}catch(e){
			this.callbacker.onException(e);
		}
	}else{
		var process=new BuildCraftProcess(this.callbacker);
		process.handleP4Path(window.dialogArguments.filePath);
	}
	window.close();
	
</script>
